package com.tiamo.traders.service.serviceImpl;

import com.tiamo.traders.entity.About;
import com.tiamo.traders.mapper.AboutMapper;
import com.tiamo.traders.service.AboutService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class AboutServiceImpl implements AboutService {
    @Autowired
    AboutMapper aboutMapper;

    @Override
    public int add(About about) {
        return aboutMapper.add(about);
    }

    @Override
    public int update(About about) {
        return aboutMapper.update(about);
    }

    @Override
    public int delete(About about) {
        return aboutMapper.delete(about);
    }

    @Override
    public List<About> findAll(About about) {
        return aboutMapper.findAll(about);
    }

    @Override
    public About findById(About about) {
        return aboutMapper.findById(about);
    }

    @Override
    public int getCount(About about) {
        return aboutMapper.getCount(about);
    }
}
